package com.bus.admin.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张子艺
 * @since 2020-04-09
 */
@TableName("pai_che")
@ApiModel(value="PaiChe对象", description="")
public class PaiChe extends Model<PaiChe> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "订单ordernum外键")
    @TableField("ordernum")
    private String ordernum;

    @ApiModelProperty(value = "司机姓名 ")
    @TableField("driver_name")
    private String driverName;

    @ApiModelProperty(value = "司机电话")
    @TableField("driver_phone")
    private String driverPhone;

    @ApiModelProperty(value = "公交车牌号")
    @TableField("bus_num")
    private String busNum;

    @ApiModelProperty(value = "0 全款 派车单   1定金派车单")
    @TableField("payType")
    private Integer payType;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrdernum() {
        return ordernum;
    }

    public void setOrdernum(String ordernum) {
        this.ordernum = ordernum;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }
    public String getDriverPhone() {
        return driverPhone;
    }

    public void setDriverPhone(String driverPhone) {
        this.driverPhone = driverPhone;
    }
    public String getBusNum() {
        return busNum;
    }

    public void setBusNum(String busNum) {
        this.busNum = busNum;
    }
    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PaiChe{" +
            "id=" + id +
            ", userId=" + userId +
            ", ordernum=" + ordernum +
            ", driverName=" + driverName +
            ", driverPhone=" + driverPhone +
            ", busNum=" + busNum +
            ", payType=" + payType +
        "}";
    }
}
